package com.lby.graduation.service;

import com.lby.graduation.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李兵耀
 * @since 2020-12-02
 */
public interface GoodsService extends IService<Goods> {
    List<Goods> showGoodsMessage();
    List<Goods> GoodsMessageRand();
    List<Goods> NewGoodsMessage();
    List<Goods> selectUserGoods(Integer userId);
    List<Goods> selectGoodsByGoodsId(Integer goodsId);
    /*通过用户ID查询购物车中的商品*/
    List<Goods> selectCartByUserId(Integer userId);
    /*模糊查询*/
    List<Goods> findGoodsByKeyword(String type,String goodsName);

}
